let index = 0;
export const add = text =>{
    return {
        type :"ADD",
        id: index++,
        text
    }
}

export const filter = iFilter  =>{
    return{
        type: 'FILTER',
        iFilter
    }
}

export const toggle = id =>{
    return {
        type: 'TOGGLE',
        id
    }
}